<include file="public@header"/>
</head>
<body>
<div class="layui-fluid js-check-wrap">
    <div class="layui-card">
        <div class="layui-card-header well">
            <div class="layui-col-xs6">
                <h3>{:lang('GOODS_ADMINGOODSTYPE_INDEX')}</h3>
            </div>
            <div class="layui-col-xs6 text-right">
                <!-- 添加分类 -->
                <a href="{:url('AdminGoodsType/add')}" class="layui-btn layui-btn-normal">{:lang('GOODS_ADMINGOODSTYPE_ADD')}</a>
            </div>
        </div>

        <div class="layui-card-body">
            <table class="layui-table">
                <thead>
                    <tr>
                        <!-- <th class="t_a_c" width="50">ID</th> -->
                        <th>{:lang('CAT_NAME')}</th>
                        <th>{:lang('ATTR_COUNT')}</th>
                        <th>{:lang('ACTIONS')}</th>
                    </tr>
                </thead>
                <foreach name="list" item="vo">
                    <tr>
                        <!-- <td>{$vo.cat_id}</td> -->
                        <td>{$vo.cat_name}</td>
                        <td>{$vo.attr_count}</td>
                        <td>
                            <a class="layui-btn layui-btn-normal layui-btn-xs" href="{:url('AdminGoodsAttribute/index',array('goods_type'=>$vo['cat_id']))}">{:lang('ATTR_LIST')}</a>
                            <a class="layui-btn layui-btn-xs" href="{:url('AdminGoodsType/edit',array('id'=>$vo['cat_id']))}">{:lang('EDIT')}</a>
                            <a href="{:url('AdminGoodsType/delete',array('id'=>$vo['cat_id']))}" class="js-ajax-delete layui-btn layui-btn-danger layui-btn-xs">{:lang('DELETE')}</a>
                        </td>
                    </tr>
                </foreach>
            </table>
        </div>

        <notempty name="page">
            <div class="pagination-row clearfix">
                <div class="pages">{$page|default=''}</div>
            </div>
        </notempty>
    </div>
    

    
</div>

<include file="public@footer"/>
